wayland: Set weak reference on the current grab window
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 18 Jan 2016 13:05:00 +0000 (14:05 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 19 Jan 2016 13:17:36 +0000 (14:17 +0100)
commit5b1d96234d5f84c8757aac160673998f9d8be16f
tree4519eb29fea387bdacbcc67b67f1f7629b0a2d20
parentbe3f0dad82b6e02afd320eecda5cd98af6baf34a
wayland: Set weak reference on the current grab window

If the grab window is destroyed the grab will be implicitly removed,
although we won't get GdkSeat:ungrab called in order to clear our
internal window<->seat relation entirely. Setting a weak ref will
nullify the pointer we keep on the seat to the window, avoiding the
expected crashes.
gdk/wayland/gdkdevice-wayland.c